/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.service.impl;

import com.seari.bean.MaterialCaregory;
import com.seari.mapper.MaterialCaregoryMapper;
import com.seari.service.MaterialCaregoryService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author whl
 */
@Service("materialCaregoryService")
public class MaterialCaregoryServiceImpl implements MaterialCaregoryService
{
    @Autowired
    private MaterialCaregoryMapper materialCaregoryMapper;

    @Override
    public List<MaterialCaregory> getFMcTree(MaterialCaregory materialCaregory) {
        return materialCaregoryMapper.getFMcTree(materialCaregory);
    }

    @Override
    public List<MaterialCaregory> getFMcByParams(MaterialCaregory materialCaregory) {
        return materialCaregoryMapper.getFMcByParams(materialCaregory);
    }

    @Override
    public MaterialCaregory getFMcByFMcId(MaterialCaregory materialCaregory) {
        return materialCaregoryMapper.getFMcByFMcId(materialCaregory);
    }

    @Override
    public int addMc(MaterialCaregory materialCaregory) {
        return materialCaregoryMapper.addMc(materialCaregory);
    }

    @Override
    public int updateMc(MaterialCaregory materialCaregory) {
        return materialCaregoryMapper.updateMc(materialCaregory);
    }

    @Override
    public int deleteMc(MaterialCaregory materialCaregory) {
        return materialCaregoryMapper.deleteMc(materialCaregory);
    }
}
